package com.zqx.command.specificcommand;

import com.zqx.command.abstractcommand.Command;
import com.zqx.command.request.DisplayHelpClass;

/**
 * description: 具体命令类
 * @author zqx
 * @date 2018/09/04
 */
public class HelpCommand extends Command {

    private DisplayHelpClass hcObj; //维持对请求接收者的引用

    public HelpCommand() {
        this.hcObj = new DisplayHelpClass();
    }

    //命令执行方法，将调用请求接收者的业务方法
    @Override
    public void execute() {
        hcObj.display();
    }
}
